package com.bp.hearthealth.pulse.lnapps.bp_utils

import com.bp.hearthealth.pulse.lnapps.R
import com.bp.hearthealth.pulse.lnapps.bp_extension.UIHelperBp

/**
 * @author isnoam
 * @package_name constant
 * @description：
 */
object Constants {

    const val LIFE_STYLE_ARTICE_FRAGMENT_VIEW: String =
        "life_style_artice_fragment_view"//文章列表跳转文章详情
    const val BLOOD_PRESSURE_RESULT_VIEW: String = "blood_pressure_result_view"//血压结果页跳转文章详情
    const val BLOOD_PRESSURE_LIST_RESULT_VIEW: String =
        "blood_pressure_list_result_view"//血压列表结果页跳转文章详情
    const val HEART_RATE_RESULT_VIEW: String = "heart_rate_result_view"//心率结束结果页页跳转文章详情
    const val HEART_RATE_LIST_RESULT_VIEW: String =
        "heart_rate_list_result_view"//心率列表结束结果页页跳转文章详情
    const val HOME_FRAGMENT_VIEW: String = "home_fragment_view" //首页跳转文章详情

    const val dfT: String = "dfT"//默认语言type
    const val dfC: String = "dfC"//默认语言code

    const val CANNOT_START_ZORE: String = "^[1-9][0-9]*$"//不能以0开头的正则
    const val TYPE_DATE: String = "datetime"
    const val TYPE_BIRTHDAY: String = "birthday"
    const val TYPE_TIME: String = "time"
    const val NEWS_URL: String = "https://scholarshipsus.top/"
    const val HEART_RATE_TIME: Long = 15000
    const val USER_ID: String = "1"
    const val CHECK_PERMISSWION: String = "check_permission"
    const val HEART_RATE: String = "heart_rate"//心率检测界面跳转
    const val HEART_LIST: String = "heart_list"//列表界跳转
    const val BLOOD_PRESSURE_RECORD: String = "blood_pressure_record"//血压记录界面跳转
    const val BLOOD_PRESSURE_LIST: String = "blood_pressure_list"//列表界跳转
    const val BLOOD_PRESSURE_ACTIVITY: String = "blood_pressure_activity"//视图Activity界跳转
    const val BLOOD_PRESSURE_FRAGMENT: String = "blood_pressure_fragment"//视图Fragment界跳转

    const val IS_FIRST_SHOW: String = "is_first_show"//是否第一次展示开屏
    const val IS_SET_LANGUAGE: String = "is_set_language"//设置过语言
    const val REFRESH_HEART_RATE: String = "refresh_heart_list"//刷新首界心率数据
    const val REFRESH_TRACKER: String = "refresh_tracker"//刷新Tracker界面
    const val LOCALE_LANGUAGE: String = "locale_language"
    const val LOCALE_COUNTRY: String = "locale_country"

    //        const val TIME_STYLE: String = "yyyy.MMM dd"
    const val TIME_STYLE: String = "MMM dd,yyyy"
    val monthList = arrayOf(
        UIHelperBp.getString(R.string._jan_str),
        UIHelperBp.getString(R.string._feb_str),
        UIHelperBp.getString(R.string._mar_str),
        UIHelperBp.getString(R.string._apr_str),
        UIHelperBp.getString(R.string._may_str),
        UIHelperBp.getString(R.string._jun_str),
        UIHelperBp.getString(R.string._jul_str),
        UIHelperBp.getString(R.string._aug_str),
        UIHelperBp.getString(R.string._sep_str),
        UIHelperBp.getString(R.string._oct_str),
        UIHelperBp.getString(R.string._nov_str),
        UIHelperBp.getString(R.string._dec_str)
    )

    const val HYPOTENSIVE_SIZE: String = "SYS < 90 or DIA < 60"
    const val NORMAL_SIZE: String = "SYS 90-119 and DIA 60-79"
    const val ELEVATED_SIZE: String = "SYS 120-129 and DIA 60-79"
    const val STAGE1_SIZE: String = "SYS 130-139 or DIA 80-89"
    const val STAGE2_SIZE: String = "SYS 140-180 or DIA 90-120"
    const val CRISIS_SIZE: String = "SYS 180 or DIA >120"

//        Blood Pressure
//        隐私链接：https://sites.google.com/view/bloodpressureprivacypolicy
//        使用条款：https://sites.google.com/view/bloodpressuretermsofuse

    const val PORIVACY_POLICY: String =
        "https://sites.google.com/view/bloodpressureprivacypolicy"//隐私政策
    const val TERMS: String = "https://sites.google.com/view/bloodpressuretermsofuse"//使用条款

    const val SWITCH_FRAGMENT: String = "switch_fragment"
    const val LANGUAGE_FORM: String = "language_from"

    /**
     * AppsFlyer
     */
    const val FLYERLIB_KEY: String = "h9VcpD7FkwUtehcW7FcTJV"//flyerlib key

    /**
     * AdMob 测试广告id
     */
    const val App_Open: String = "ca-app-pub-3940256099942544/9257395921"  //开屏广告位ID
    const val Interstitial: String = "ca-app-pub-3940256099942544/1033173712"   //插页广告位ID
    const val Rewarded: String = "ca-app-pub-3940256099942544/5224354917"   //激励广告位ID
    const val Native_Advanced: String = "ca-app-pub-3940256099942544/2247696110"  //原生广告位ID
    const val Adaptive_Banner: String = "ca-app-pub-3940256099942544/9214589741"  //横幅广告位ID

    /**
     * AdMob 正式广告id
     */
//    const val App_Open: String = "ca-app-pub-7270674292629730/4484401183"  //开屏广告位ID
//    const val Interstitial: String = "ca-app-pub-7270674292629730/8423646196"  //插页广告位ID
//    const val Rewarded: String = "ca-app-pub-7270674292629730/3933736842"  //激励广告位ID
//    const val Native_Advanced: String = "ca-app-pub-7270674292629730/4662410879"  //原生广告位ID
//    const val Adaptive_Banner: String = "ca-app-pub-7270674292629730/6236466552"  //横幅广告位ID

    /**
     * TopOn 广告配置
     */
    const val TOP_ON_APP_KEY: String = "a52b33f942016d28479831df923efc2a7"  //App Key
    const val TOP_ON_APP_ID: String = "a663c897766311"  //App ID

    //TopOn 正式广告id
    const val TOP_ON_OPEN_ID: String = "b663c89dd1669e"  //开屏广告位ID
    const val TOP_ON_INTER_ID: String = "b663c89ddd1021"  //插页广告位ID
    const val TOP_ON_REWARDED_ID: String = "b663c89dd47896"  //激励广告位ID
    const val TOP_ON_NATIVE_ID: String = "b663c89dda2642"  //原生广告位ID
    const val TOP_ON_BANNER_ID: String = "b663c89dd74402"  //横幅广告位ID



    const val OPEN_PAGE: String = "OpenPage"//0：心率 1：血压
    const val HEART_RATE_ACTION: String = "heart_rate_action"//心率
    const val BLOOD_PRESSURE_ACTION: String = "blood_pressure_action"//血压
    const val LIFESTYLE_ACTION: String = "lifestyle_action"//lifestyle
    const val HOME_FRAGMENT_ACTION: String = "home_fragment_action"//HomeFragment
    const val NOTIFICATION: String = "notification"//通知->MainActivity接受跳转类型

    const val NOTIFICATION_ACTION: String = "notification_action"//通知action
    const val NOTIFICATION_HOME_FRAGMENT: String = "notification_home_fragment"//通知跳转首页
    const val NOTIFICATION_LIFESTYLE_FRAGMENT: String =
        "notification_lifestyle_fragment"//通知跳转LifeStyle
    const val NOTIFICATION_HEART_RATE_GUIDE: String =
        "notification_heart_rate_guide_activity"//通知跳转心率引导
    const val NOTIFICATION_BLOOD_PRESSURE: String =
        "notification_blood_pressure_activity"//通知跳转记录血压
    const val DENIED: String = "denied"//第一次拒绝相机权限
    var LIFE_STYLE_JUMP: Boolean = false //true:进入首页后,跳转LifeStyle页,false:进入首页默认页面
    var HEART_RATE_JUMP: Boolean = false //true:进入首页后,跳转心率页,false:进入首页默认页面
    var BLOOD_PRESSURE_JUMP: Boolean = false //true:进入首页后,跳转血压页,false:进入首页默认页面
    var LIMIT_30: String = "ad_video_limit_30" //当天展示此时达到30次
}